@import '../../variables.scss';

.hzdz-infrastructure {
  position: relative;
  width: 510px;
  height: auto;
  
  // 响应式适配
  @media screen and (max-width: 1920px) {
    transform: scale(0.8);
    transform-origin: top left;
  }
  
  @media screen and (max-width: 1080px) {
    transform: scale(0.6);
    transform-origin: top left;
  }
  
  @media screen and (min-width: 3952px) {
    transform: scale(1.2);
    transform-origin: top left;
  }

  // 顶部标题栏
  &__header {
    position: relative;
    width: 510px;
    height: 56px;
    margin-bottom: 1px;
  }

  &__header-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
  }

  &__title {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 97px;
    height: 24px;
    font-family: YouSheBiaoTiHei, sans-serif;
    font-size: 24px;
    color: #FFFFFF;
    line-height: 24px;
    letter-spacing: 2px;
    text-shadow: 0px 1px 8px rgba(0, 15, 13, 0.66);
    text-align: left;
    font-style: normal;
    background: linear-gradient(90deg, #FFFFFF 0%, #4899FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  &__english-title {
    position: absolute;
    left: 137px;
    top: 50%;
    transform: translateY(-50%);
    width: 145px;
    height: 14px;
    font-family: AzonixRegular, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 14px;
    text-align: left;
    font-style: normal;
  }

  // 主内容区域
  &__content {
    width: 500px;
    height: 98px;
    background: linear-gradient(180deg, #14191F 0%, #3C4249 100%), 
                linear-gradient(178deg, rgba(9, 11, 13, 0) 0%, #26394D 100%), 
                radial-gradient(202% 43% at 53% -3%, rgba(166, 213, 255, 0.5) 0%, rgba(166, 209, 255, 0) 24%, rgba(179, 212, 255, 0) 100%);
    border: 1px solid rgba(77, 89, 102, 0.25);
    border-radius: 4px;
    padding: 20px;
    margin-left: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  // 统计数据区域
  &__statistics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 33px;
  }

  &__stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
  }

  &__stat-label {
    font-family: SourceHanSansSC, SourceHanSansSC;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 22px;
    text-align: center;
    font-style: normal;
    white-space: nowrap;
  }

  &__stat-value {
    font-family: DINAlternate, DINAlternate;
    font-weight: bold;
    font-size: 24px;
    color: #1AD7FF;
    line-height: 28px;
    text-align: left;
    font-style: normal;
    background: linear-gradient(90deg, #FFFFFF 0%, #81C6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.86px;
  }

  // 特殊对齐调整
  &__stat-item:first-child {
    .hzdz-infrastructure__stat-label {
      text-align: left;
    }
    
    .hzdz-infrastructure__stat-value {
      align-self: flex-start;
      margin-left: 11px;
    }
  }

  // 响应式调整
  @media screen and (max-width: 1920px) {
    &__content {
      width: 400px;
      height: 78px;
      padding: 16px;
    }
    
    &__header {
      width: 408px;
      height: 45px;
    }
    
    &__title {
      font-size: 19px;
      left: 16px;
      width: 78px;
    }
    
    &__english-title {
      font-size: 11px;
      left: 110px;
      width: 116px;
    }
    
    &__statistics {
      padding: 0 26px;
    }
    
    &__stat-label {
      font-size: 13px;
      line-height: 18px;
    }
    
    &__stat-value {
      font-size: 19px;
      line-height: 22px;
    }
    
    &__stat-item:first-child {
      .hzdz-infrastructure__stat-value {
        margin-left: 9px;
      }
    }
  }
  
  @media screen and (max-width: 1080px) {
    &__content {
      width: 300px;
      height: 59px;
      padding: 12px;
    }
    
    &__header {
      width: 306px;
      height: 34px;
    }
    
    &__title {
      font-size: 14px;
      left: 12px;
      width: 58px;
    }
    
    &__english-title {
      font-size: 8px;
      left: 82px;
      width: 87px;
    }
    
    &__statistics {
      padding: 0 20px;
    }
    
    &__stat-item {
      gap: 6px;
    }
    
    &__stat-label {
      font-size: 10px;
      line-height: 13px;
    }
    
    &__stat-value {
      font-size: 14px;
      line-height: 17px;
    }
    
    &__stat-item:first-child {
      .hzdz-infrastructure__stat-value {
        margin-left: 7px;
      }
    }
  }
  
  @media screen and (min-width: 3952px) {
    &__content {
      width: 600px;
      height: 118px;
      padding: 24px;
    }
    
    &__header {
      width: 612px;
      height: 67px;
    }
    
    &__title {
      font-size: 29px;
      left: 24px;
      width: 116px;
    }
    
    &__english-title {
      font-size: 17px;
      left: 164px;
      width: 174px;
    }
    
    &__statistics {
      padding: 0 40px;
    }
    
    &__stat-item {
      gap: 10px;
    }
    
    &__stat-label {
      font-size: 19px;
      line-height: 26px;
    }
    
    &__stat-value {
      font-size: 29px;
      line-height: 34px;
    }
    
    &__stat-item:first-child {
      .hzdz-infrastructure__stat-value {
        margin-left: 13px;
      }
    }
  }
}